<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- <script src="./js/echarts.js"></script> -->
    <!-- 上面最新的echart会显示不出来平铺的icon，所以使用下面的 -->
    <script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>
    <title>Document</title>
    <style>
        #box{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            width: 100%;
        }
        #box>div{
            margin: 30px;
            width: 45%;
            height: 400px;
        }
        #box>#main3{
            width: 100%;
            height: 400px;
        }
        #box>#main4{
            width: 100%;
            height: 400px;
        }
        p{
            text-align: center;
        }
    </style>
</head>

<body>
    <div id="box">
        <div id="main1" ></div>
        <div id="main2" ></div>
        <div id="main3" ></div>
        <div id="main4" ></div>
    </div>
    <p>鼠标按住图表中的任意一个图例移动拖拽到另一个图中，后松开鼠标,图形即可切换过去</p>
    <p>同一个图表中不能存在两个一样的数据图例,会切换拖拽失败</p>
    <p>示例:按住饼图的视频广告拖拽到柱形图的视频广告后松开,即可</p>
   <script src="./js/1.js"></script>
    <script src="./js/2.js"></script>
    <script src="./js/3.js"></script>
    <script src="./js/4.js"></script>
</body>

</html>